package com.zmn.oms.persistence.interfaces.report;

import com.zmn.oms.model.entity.report.ReportCoupAnalyse;
import com.zmn.oms.model.entity.report.ReportCoupAnalyseQuery;
import com.zmn.oms.model.vo.report.ReportCoupAnalyseVO;

import java.util.List;

/**
 * 优惠卷分析报表
 *
 * @author: HuangYongJie
 * @version: v1.0
 * @since: 2019/11/4 19:05
 **/
public interface ReportCoupAnalyseDao {

    ReportCoupAnalyse findByKey(Integer batchId);

    List<ReportCoupAnalyseVO> listPageByQuery(ReportCoupAnalyseQuery query);

    ReportCoupAnalyseVO getTotalRowReportCoupAnalyse(ReportCoupAnalyseQuery query);

    List<ReportCoupAnalyse> listByQuery(ReportCoupAnalyseQuery query);

    List<ReportCoupAnalyse> listCloseAndExpirData();


    Integer countByQuery(ReportCoupAnalyseQuery query);

    Integer insert(ReportCoupAnalyse reportCoupAnalyse);

    Integer insertBatch(List<ReportCoupAnalyse> list);

    Integer deleteByKey(Integer batchId);

    Integer deleteBatchByKeyList(List<Integer> list);


    Integer deleteCloseAndExpirData();
}